Document Class

Represents a document in OpenDocument format.

Definition

Namespace: Independentsoft.Office.Odf
Assembly: Independentsoft.Calc (in Independentsoft.Calc.dll) Version: 3.0.520.1+c6c593d5629a051e0af021b238c5d69d764f9686
C#
public abstract class Document
Inheritance
Object    Document
Derived

Constructors

DocumentInitializes a new instance of the Document class

Properties

Methods

Equals
(Inherited from Object)
Finalize
(Inherited from Object)
Find(String) Returns all occurrences of the specified text in the whole document, including tables, headers, footers, notes, annotations, text boxes and shapes.
Find(String, FindOptions) Returns all occurrences of the specified text.
FindElementsT Returns all content elements of the specified type, for example all images or all tables, from the whole document.
FindElementsT(PredicateT) Returns all content elements of the specified type which match the specified condition.
FindElementsT(PredicateT, SearchScope) Returns all content elements of the specified type which match the specified condition.
FindFirst(String) Returns the first occurrence of the specified text or null if the text was not found.
FindFirst(String, FindOptions) Returns the first occurrence of the specified text or null if the text was not found.
GetAttributedTexts 
GetBytes 
GetContentElements 
GetFields 
GetHashCode
(Inherited from Object)
GetHeadings 
GetHtml Converts the document to HTML format.
GetImages 
GetLists 
GetParagraphs 
GetSections 
GetStream 
GetTables 
GetText Returns the plain text of the whole document.
GetTexts 
GetType
(Inherited from Object)
MemberwiseClone
(Inherited from Object)
Open(Stream) 
Open(String) 
Remove Removes the specified content element from the document.
Replace(IContentElement, IContentElement) Replaces the specified content element, for example a span, a paragraph or a table, with another content element. The properties of the replaced element are preserved if the new element has no own properties.
Replace(IListString, IListString) Replaces all occurrences of the specified oldText with newText.
Replace(Image, String) Replaces the image of the specified image element. The size, the position and all other properties of the frame remain unchanged.
Replace(String, AttributedText) Replaces all occurrences of the specified text with a copy of the specified span. The text before and after the replaced text keeps its formatting.
Replace(String, IParagraphContent) Replaces all occurrences of the specified text with a copy of the specified content, for example an image, a tab, a line break, a field or a hyperlink.
Replace(String, String) Replaces all occurrences of the specified oldText with newText in the whole document. The paragraphs, their styles and all other content of the paragraphs remain unchanged.
Replace(IContentElement, IContentElement, FindOptions) Replaces the specified content element with another content element.
Replace(IListString, IListString, FindOptions) Replaces all occurrences of the specified oldText with newText.
Replace(Image, String, Byte) Replaces the image of the specified image element. The size, the position and all other properties of the frame remain unchanged.
Replace(String, AttributedText, FindOptions) Replaces all occurrences of the specified text with a copy of the specified span.
Replace(String, IParagraphContent, FindOptions) Replaces all occurrences of the specified text with a copy of the specified content.
Replace(String, IListAttributedText, FindOptions) Replaces all occurrences of the specified text with copies of the specified spans.
Replace(String, IListIParagraphContent, FindOptions) Replaces all occurrences of the specified text with copies of the specified content.
Replace(String, String, FindOptions) Replaces all occurrences of the specified oldText with newText.
Save(Stream) 
Save(String) 
Save(String, Boolean) 
SaveAsHtml(Stream) Saves the document in HTML format.
SaveAsHtml(String) Saves the document in HTML format.
SaveAsHtml(String, Boolean) Saves the document in HTML format.
ToString
(Inherited from Object)

See Also